Is AES-CBC quantum safe for long-lived data?

The sources listed on this page do not single out CBC as weaker against quantum attack than other AES modes. They tie the quantum question to key length, and they flag CBC as a mode to inventory and review.

On this page

Is AES-CBC quantum safe for long-lived data? What the published guidance says

If you choose cipher modes or hold long-lived data that is encrypted with AES in CBC mode, the question is whether a future quantum computer changes that choice. The published position is that the key length matters far more than the mode. The UK NCSC says symmetric algorithms with at least 128-bit keys, such as AES, can continue to be used, and NIST's post-quantum FAQ says Grover's algorithm will likely offer little or no advantage against AES, that AES 128 will remain secure for decades to come, and that current applications can keep using AES at 128, 192 or 256 bits. The sources listed on this page do not single out CBC as quantum-specific. Engineers choosing modes, security leads signing off on designs, and compliance teams responsible for data that must stay confidential for years should therefore read the answer as a statement about the AES key, with the mode assessed separately.

The mode question is still live for other reasons. NIST SP 800-38A, which defines CBC alongside ECB, CFB, OFB and CTR, carries a planning note dated 28 April 2023 saying NIST plans to revise it. The initial public draft of NIST SP 800-131A Rev. 3, published 21 October 2024, proposes retiring ECB as a confidentiality mode and does not mention CBC in its announcement. RFC 8446 says TLS 1.3 kept only AEAD algorithms, while RFC 5932 defines CBC cipher suites that pair encryption with a separate HMAC. Confirm with your standards body and your protocol versions whether CBC is still permitted in your environment, and record the mode in your cryptographic inventory, which NIST's FAQ lists as an item to capture.

For data that must stay secret for years, the practical steps are to confirm the AES key length is 128 bits or longer, ideally 256 bits where planners have chosen that for margin, and to check which mode and authentication construction each system uses. Where CBC is paired with a MAC, verify the MAC and its key handling, since the sources here do not assess those details. Ask your vendors which AES modes their products use and whether they plan to move to authenticated modes. Recheck the guidance as NIST revises SP 800-38A and SP 800-131A.

What each body has published on AES-CBC and quantum attack

This table lists what each standards body or agency has published on the CBC mode and on symmetric key length in a quantum context, with the dates each source gives. Read it to see which documents address the mode directly and which address only key length, since none of the sources listed names CBC as a quantum target.

SourceWhat it says about the mode or key lengthDates set
NIST SP 800-38ADefines CBC as one of five confidentiality modes for a block cipher, alongside ECB, CFB, OFB and CTR. It does not discuss quantum attack.Published December 2001. Planning note dated 28 April 2023 says NIST plans to revise it.
NIST SP 800-131A Rev. 3 draftProposes retiring ECB as a confidentiality mode. The announcement does not mention CBC.Initial public draft published 21 October 2024. Comments due 4 December 2024.
FIPS 197 (AES)Specifies AES with a 128-bit block and 128, 192 or 256-bit keys. Describes the cipher, not the mode.Published 26 November 2001. Updated 9 May 2023 with editorial changes only.
NIST PQC FAQSays Grover's algorithm may give AES little or no advantage, that AES-128 will remain secure for decades, and that anything under 112 bits of classical security should not be used. Lists CBC versus GCM as items to record in a cryptographic inventory.No single publication date given on the FAQ page. Check the NIST page for its current revision.
NCSC white paper 2.0Says symmetric cryptography is not significantly impacted by quantum computers, that AES with at least 128-bit keys can continue in use, and that SHA-256 is also not significantly affected. Does not single out CBC.Version 2.0, updated 14 August 2024.
ANSSI views paperSays Grover's algorithm quadratically speeds up exhaustive key search, with a more limited impact than on public-key schemes. Suggests 256-bit AES keys as the mitigation. Does not discuss CBC.Web page dated 4 January 2022.
BSI quantum status studySays Grover's and Simon's algorithms will have implications for symmetric cryptography, in particular for key lengths and operating modes. Gives no specific key-length recommendation and does not name CBC.Version 2.2 of the study. Check the BSI page for its publication date.
NCSC migration timelinesSets migration milestones for public-key systems. Does not address the CBC mode or symmetric key length.Discovery and assessment by 2028. Highest priority migration by 2031. All systems by 2035. Dated 20 March 2025.

Why the guidance treats symmetric ciphers differently from public-key algorithms

The guidance treats AES-CBC differently from public-key algorithms because the quantum threat to symmetric cryptography is far more limited. NIST's post-quantum FAQ explains that Grover's algorithm lets a quantum computer run a brute-force key search in fewer steps than a classical attack, a quadratic speedup. ANSSI describes the impact as far more limited than the impact of Shor's algorithm on public-key cryptography, and the mitigation it names is enlarging parameters, for example using 256-bit AES keys instead of 128-bit ones. For AES-CBC, the cipher's key strength and the operating mode are two separate questions. The key length is what Grover's algorithm weakens, so an AES-128 key should be checked against the security level your data requires, while AES-256 keys remain well inside the margins the sources describe.

The speedup is also conditional. Zalka proved in 1997 that the full quadratic speedup requires all steps of Grover's algorithm to run in series, and NIST's evaluation criteria describe this as a long-running serial computation that is difficult to implement in practice. NIST's FAQ says it is quite likely that Grover's algorithm will provide little or no advantage in attacking AES, and that current applications can keep using AES at 128, 192 or 256 bits. The UK NCSC reaches a similar conclusion, stating that existing symmetric algorithms with at least 128-bit keys can continue to be used. Confirm the parallelism and resource assumptions behind any quantum estimate you rely on, since the sources do not give one for your environment.

The operating mode is a separate item in the inventory. BSI's quantum study says Grover's and Simon's algorithms will have implications for symmetric cryptography, in particular for key lengths and operating modes, but it gives no specific key-length recommendation and does not name CBC. NIST's FAQ also lists operating modes such as CBC versus GCM as items to record in a cryptographic inventory. Record the mode and the key length for each AES-CBC deployment, and confirm with your vendors and standards how the mode is handled in the versions you run.

Where practitioners still rely on AES-CBC and what the sources say about each

AES-CBC still appears in several places where engineers and auditors need to decide whether it stays. The sources below address different parts of that question, from the protocol layer to the inventory work that comes before any migration.

TLS suites that pair CBC with HMAC

RFC 5932 defines TLS Camellia cipher suites that run in CBC mode and authenticate messages with HMAC-SHA1 or HMAC-SHA-256. This shows that CBC-based suites have historically been built as encrypt-then-authenticate constructions with a separate MAC, which is a different design from AEAD. Check which suites your TLS endpoints actually negotiate, since a server may still offer CBC suites even when clients prefer others. The RFC describes Camellia suites, so confirm for any AES-CBC suite in your own configuration how it is defined.

RFC 5932 text

TLS 1.3 keeps only AEAD

RFC 8446 states that TLS 1.3 removed all legacy symmetric algorithms and kept only AEAD algorithms. For a connection that negotiates TLS 1.3, CBC is therefore not part of the cipher suite selection. The RFC passage reviewed does not name CBC directly, so the conclusion rests on the AEAD-only rule rather than on a list of removed modes. Confirm in your own deployment whether connections fall back to TLS 1.2, where CBC suites may still be in use.

RFC 8446 text

Stored data and file encryption

Archives, databases, backups and file encryption tools may apply AES in CBC mode to data that stays in storage for years. This is the case the page's long-lived data question is about. The NIST and NCSC sources address key length for AES, not the mode, so the mode choice needs to be checked on its own. Find out which tool, library and version wrote each stored object, and whether its format fixes the mode.

Legacy VPN and application stacks

Older VPN gateways, appliances and application frameworks may still rely on AES-CBC because the mode is built into their default configuration or was the only option when they were deployed. These systems are often upgraded slowly or not at all. The sources reviewed do not list specific products that use CBC, so ask each vendor which modes their current release supports and whether the mode can be disabled. Record vendor responses in the cryptographic inventory.

CBC versus GCM in the inventory

NIST's post-quantum FAQ lists operating modes such as CBC versus GCM as items to record in a cryptographic inventory. The inventory is the step before any migration decision: it shows which systems use CBC, where, and under which key length. Record the mode alongside the key length for every AES use, not only the algorithm name. This is a recording step, and the FAQ does not say that either mode must be replaced.

NIST NCCoE FAQ

What the sources say about AES-CBC data that must stay confidential for years

The sources treat AES itself as the part that holds up. NCSC's white paper (version 2.0, updated 14 August 2024) says symmetric cryptography is not significantly affected by quantum computers and that existing algorithms with at least 128-bit keys, such as AES, can continue to be used. NIST's post-quantum FAQ says it is quite likely that Grover's algorithm will provide little or no advantage against AES, that AES-128 will remain secure for decades, and that current applications can keep using AES at 128, 192 or 256 bits. ANSSI takes a more cautious line: its views paper (dated 4 January 2022) says Grover's algorithm speeds up exhaustive key search, and it recommends 256-bit keys instead of 128 as the mitigation for long-term parameters. Read together, these sources say the key length is the variable to decide on, and none of them says AES-CBC needs to be replaced because of quantum attacks.

None of these sources gives a retention period specific to CBC, and none says CBC carries its own quantum risk. BSI's quantum status study says Grover's and Simon's algorithms will have implications for symmetric cryptography, particularly for key lengths and operating modes, but it gives no key-length recommendation for any mode. Your confidentiality window is therefore a decision you have to make yourself. Set it against the milestones NCSC publishes in its migration timelines guidance (20 March 2025): completing discovery and assessment by 2028, completing the highest priority migration activities by 2031, and completing migration of all systems, services and products by 2035. If data must stay secret beyond those dates, plan for a longer key and record which mode each system uses in your cryptographic inventory, as NIST's NCCoE FAQ suggests.

What the guidance says to use instead of AES-CBC, with the dates

The sources treat the key length as the main lever for symmetric primitives. ANSSI's views paper says Grover's algorithm quadratically speeds up exhaustive key search, and that the risk can be mitigated by enlarging parameters, for example using 256-bit keys instead of 128 for AES. The NSA's CNSA 2.0 suite specifies AES-256 for national security systems. The change is to the key size of the cipher, not the mode, so it does not by itself remove any structural property of CBC.

  • ANSSI guidance: enlarging parameters, such as 256-bit AES keys, is the mitigation named in its post-quantum views paper (4 January 2022 web page).
  • CNSA 2.0 suite: pairs AES-256 with SHA-384 or SHA-512, and is required in new national security system acquisitions from 1 January 2027, per the NSA FAQ version 2.2 of October 2026.
  • NIST position: its post-quantum FAQ says current applications can keep using AES at 128, 192 or 256 bits, so the key-length change is a choice, not a mandate for commercial users.
  • Scope of CNSA 2.0: it applies to national security systems and does not bind commercial organizations.
  • Mode unchanged: a longer key does not address the operating mode, so inventory the mode in use alongside the key length.

Confirm which AES key length and mode each system uses, and check your federal or contractual requirements against the NSA and ANSSI documents before choosing a size.

What to do about AES-CBC in your systems, in order

This sequence turns the general finding that AES-128 and AES-256 keep a usable margin against quantum search into a concrete inventory of where CBC is in use, what each use protects, and what replaces it. The output is a dated, vendor-confirmed plan you can show auditors and customers. It does not establish that any particular deployment is safe.

  1. Find every place AES-CBC is used

    Start with a search of your configuration and code for CBC, including TLS cipher suite lists on load balancers, web servers, VPN gateways and service meshes, and application code that calls a block cipher in CBC mode. Then check stored data: database column encryption, backup tools, file archives and message queues. Record each location with the owning team. The step is done when every instance is listed and each has an owner, since a missed one will not be migrated.

  2. Read the NIST milestones against your retention period

    Compare how long each dataset must stay confidential with the dates in the sources. NIST's draft SP 800-131A Rev. 3 proposes retiring ECB as a confidentiality mode but does not mention CBC in its announcement, and the SP 800-38A page notes NIST plans a revision. Do not assume CBC is retired or permitted by any date. Note the UK NCSC migration milestones of 2028, 2031 and 2035 and record which of your datasets outlive them. The output is a list flagging the records that need action first.

  3. Ask vendors about AEAD modes and longer keys

    Send each vendor in the inventory a written question asking whether their product supports an authenticated encryption mode such as AES-GCM, whether CBC can be disabled, and whether AES-256 is available. TLS 1.3 uses only AEAD algorithms, so ask whether your endpoints negotiate TLS 1.3 by default. Request answers for the specific product version you run. Store the replies with the inventory. The step is done when every vendor has answered in writing or you have logged the gap.

  4. Plan the change against the published dates

    Schedule each migration against the dates in the NCSC timelines and your own retention requirements, prioritizing datasets whose confidentiality period runs longest. For each item, decide whether the fix is a configuration change, a library upgrade, a re-encryption of stored data, or a move to an AEAD mode, and identify what testing it needs. Note that an upgrade that changes the cipher can break clients that cannot negotiate it. The step is done when each item has a named owner, a target and a rollback path.

  5. Record the mode and key length in your inventory

    Add the mode, key length and the system or dataset it protects to your cryptographic inventory, as NIST's post-quantum FAQ recommends for items such as CBC versus GCM. Keep the vendor answers from the earlier step alongside each entry, with the date recorded. Refresh the entry each time a configuration changes. Auditors and customers will ask which mode protects which data, and this record answers that question. The step is done when every inventory entry shows the mode, the key length, the owner and the last review date.

Claims readers meet about AES-CBC and quantum attack, and what the sources say

Readers often arrive with a claim they heard about CBC, AES key length or migration deadlines. The cards below test four of these claims against the published guidance, so you can see which parts the sources support and which they do not address.

CBC is broken by quantum computers

None of the sources reviewed says this. NIST's post-quantum FAQ and the UK NCSC white paper both describe the quantum threat to symmetric cryptography as a search speedup on key length, not a break of a mode. The BSI study mentions operating modes in the context of key lengths, without naming CBC or calling it broken. Treat any claim that CBC specifically falls to quantum computers as unsupported by these sources, and check the mode against your own key length and design.

NIST PQC FAQ

AES-128 is unsafe against quantum computers

NIST's post-quantum FAQ says current applications can keep using AES at 128, 192 or 256 bits, and that AES 128 will remain secure for decades to come. The UK NCSC says existing symmetric algorithms with at least 128-bit keys can continue to be used. ANSSI takes a more cautious line and suggests 256-bit keys to mitigate the Grover speedup. Ask which key length your data needs and which agency's guidance your organization follows.

NCSC white paper

A larger key is always needed

The sources do not agree on this. NIST says AES-128 can continue, while ANSSI recommends 256-bit keys instead of 128 for AES to mitigate the Grover speedup. The CNSA 2.0 suite uses AES-256 for national security systems, but it does not bind commercial organizations. Choose key length from your data's required confidentiality period and your compliance obligations, and confirm which reference your assessor expects.

ANSSI PQC views

CBC must be removed by a fixed date

The sources set dates for the algorithm family and for specific migration milestones, not for CBC by name. NIST's draft SP 800-131A Rev. 3 proposes retiring ECB as a confidentiality mode and does not mention CBC in its announcement. The UK NCSC sets milestones of 2028, 2031 and 2035 for completing PQC migration across systems. Check your own migration plan against these dates, and confirm with your assessor whether CBC is in scope for retirement.

NCSC timelines

Questions people search about AES-CBC and quantum attack

Does a larger AES key make AES-CBC safe against a quantum attack?

Yes, a larger key is the mitigation the sources describe, though the fix is in the key length, not the mode. Grover's algorithm gives a quadratic speedup against exhaustive key search, and ANSSI's views paper says the risk can be mitigated by enlarging parameters, for example using 256-bit keys instead of 128 for AES. NIST's post-quantum FAQ says current applications can keep using AES at 128, 192 or 256 bits and that Grover's algorithm will likely give little or no advantage against AES. The sources do not say that a larger key settles questions about the mode itself, so confirm the mode separately. The UK NCSC says existing symmetric algorithms with at least 128-bit keys can continue to be used.

Must AES-CBC be replaced now because of quantum computers?

The published guidance does not require replacing AES-CBC on quantum grounds alone. The UK NCSC says the security of symmetric cryptography is not significantly impacted by quantum computers, and NIST's FAQ says AES 128 will remain secure for decades. The timing question is separate from the mode question. NIST's draft SP 800-131A Rev. 3, published 21 October 2024, proposes retiring ECB as a confidentiality mode and does not mention CBC in its announcement. Check whether your key length meets current guidance, and check whether the mode meets your security requirements. Those checks are the ones to run now.

What should replace AES-CBC for long-lived data?

The sources point to authenticated encryption rather than naming a single replacement mode. RFC 8446 says TLS 1.3 kept only AEAD algorithms and removed the legacy symmetric algorithms. NIST's inventory FAQ lists operating modes such as CBC versus GCM as items to record. In practice, teams often move to AES-GCM, though the sources reviewed here do not state that GCM is the required replacement. Confirm the choice against your protocol version, your library and your compliance profile.

Is long-lived data encrypted with AES-CBC at risk today?

The sources do not describe a present-day attack that breaks AES-CBC, and they do not say the mode is quantum-specific. BSI's study says Grover's algorithm and Simon's algorithm will affect symmetric cryptography, particularly key lengths and operating modes, without naming CBC or giving a key-length recommendation. Treat the risk as a property of your key length and your mode choices, and review both against the guidance listed on this page. Data that must stay secret for many years is the case where the planning horizon matters most.

What should I ask a vendor about AES-CBC in their product?

Ask which AES key lengths the product uses, which cipher modes it offers, and whether CBC is the default or a selectable option. Ask whether authenticated modes are available, how the CBC message authentication is built, and which versions of the product support each option. NIST's FAQ says operating modes such as CBC versus GCM belong in a cryptographic inventory, so ask for a list you can place in yours. Ask for the vendor's published plan for mode changes. Confirm the answers against the version you run, since the sources do not describe any particular vendor.

Is AES-CBC listed for retirement in NIST guidance?

The published draft does not list CBC for retirement. NIST's initial public draft of SP 800-131A Rev. 3, published 21 October 2024 with comments due 4 December 2024, proposes retiring ECB as a confidentiality mode, and its announcement does not mention CBC. NIST SP 800-38A, published December 2001, defines CBC among its five confidentiality modes, and its page carries a planning note dated 28 April 2023 saying NIST plans to revise the publication. Track the final SP 800-131A Rev. 3 and any revision of SP 800-38A for changes to CBC's status.

The dates the guidance sets for moving off AES-CBC

The timeline runs from the 2001 publication of NIST SP 800-38A, which defines CBC as a confidentiality mode, through the 2023 FIPS 197 update and the 2024 NIST SP 800-131A Rev. 3 draft, which proposes retiring ECB but does not mention CBC. Beyond NIST, the UK NCSC sets migration milestones for 2028, 2031 and 2035, and the NSA's CNSA 2.0 sets dates for 2027, 2030 and 2031. CNSA 2.0 applies to national security systems and does not bind commercial organizations, so commercial teams should treat it as a reference. Check each body's own document for what it says about CBC specifically, since the sources listed here do not name CBC as a retirement target.

The published dates from NIST, NCSC and NSA that bear on moving off AES-CBC.

How DeployOpen works on this

DeployOpen helps teams that run CBC-based encryption in their own infrastructure work out where it is used, what depends on it and what the replacement path looks like. We scope the work in writing first, then build and test changes in your environment, and hand over documentation your security and compliance teams can review.

How we scope

  • We inventory where CBC mode is configured across your services, protocols and stored data, including the operating mode recorded for each cipher.
  • We agree a written scope covering which systems are in, which are out and which deliverables you will receive before any work starts.
  • We identify which CBC uses pair encryption with a separate HMAC, since those need a different migration path than authenticated modes.

How we build

  • We plan and test changes to cipher suite and mode configuration in a staging copy of your environment before anything reaches production.
  • We move dependent components, such as TLS terminators and application libraries, to modes your standards and vendors support, checking compatibility for the versions you run.
  • We run security tests against the changed configuration to confirm that the intended modes are in use and that nothing regressed.

How we hand over

  • You receive documentation of the configuration changes, the systems affected and the test results, written so your auditors and engineers can follow them.
  • We record the remaining CBC dependencies that cannot yet be changed, with the reason and the isolation controls applied to each.
  • We walk your team through the handover so the migration plan can be maintained by your own staff after the engagement ends.

How we support

  • Ongoing support and upgrades are available as a retainer, covering configuration changes as your vendors and standards are revised.
  • Continuous testing can be added so that new services and updates are checked for CBC use before they reach production.
  • Before starting, ask us to confirm the scope, deliverables and timeline in writing, since those are agreed as part of a fixed-scope engagement.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.