# CVE-2020-8911: CBC padding oracle in AWS S3 Crypto SDK for GoLang

> An attacker with write access to an S3 bucket can decrypt files encrypted with the vulnerable Go SDK by exploiting a CBC padding oracle vulnerability.

- **Severity:** Medium 5.6 (`CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 11 Aug 2020
- **Updated:** 4 Aug 2024
- **Also known as:** CLEANSTART-2026-RN39734, GHSA-f5pg-7wfw-84q9, GO-2022-0646, MINI-23mg-2m9c-pxhg, MINI-2447-rhh3-2286, MINI-24mh-x6mf-98jp, MINI-2597-ggfv-95g8, MINI-25rh-gw4h-7qf4, MINI-26f6-c5x5-m9c7, MINI-27wx-m3f2-7g5w, MINI-2867-w889-vgjp, MINI-29qp-6c46-44x4, MINI-2cgq-xw6v-5jxc, MINI-2f8p-wh24-j3q7, MINI-2g9h-84qc-mmwj, MINI-2j4f-9v3j-whj7, MINI-2wvh-v8fr-gxf8, MINI-2xv5-g886-39g8, MINI-2xw8-fp6c-4vgw, MINI-327g-69r9-r665, MINI-338j-x7hr-3jpg, MINI-3455-cr7w-238j, MINI-36cc-3gg5-578g, MINI-3g83-38xw-m2wg, MINI-3mvw-fxf7-3m6m, MINI-3pmx-xjhj-m2pp, MINI-3qcg-957h-xv9w, MINI-3r29-rr7x-wwhm, MINI-3xcm-rfr7-9qwv, MINI-433r-cwc6-qv6m, MINI-493f-5jjf-4v4r, MINI-49v4-3r6x-mj79, MINI-49v8-95h5-35q7, MINI-4cgq-h73w-cg8w, MINI-4cm3-xr5h-4gjc, MINI-4fg6-cf7r-w39m, MINI-4p9p-xgqv-j6pv, MINI-4v4f-gcv6-266j, MINI-4vv9-vw43-fpm8, MINI-4xq5-5r59-8rgc, MINI-4xwf-wg7g-qfhf, MINI-53vm-fq4f-hv64, MINI-54rc-hw79-vrw5, MINI-55hm-qvj4-c35v, MINI-55hp-pggx-28qw, MINI-5777-5928-x79f, MINI-582h-7hww-c24f, MINI-5mg5-9xmr-p2gx, MINI-5w39-qp25-87jq, MINI-5wjc-2cqw-62gw, MINI-5xgq-8whj-cfxx, MINI-5xh3-9h78-xrqh, MINI-5xr6-vm3p-7xmc, MINI-62j8-h5jf-pxj5, MINI-62m9-q4pm-5gv9, MINI-63hv-7223-gc37, MINI-63q8-pp68-6wx9, MINI-6978-j6qw-39f7, MINI-69wq-qpw4-f6gj, MINI-6cm8-xq67-h7qx, MINI-6fv3-4f77-wh63, MINI-6h49-v86m-rh2f, MINI-6mf9-x2g4-96g7, MINI-6mjp-5f43-rphx, MINI-6ppv-rjmr-cfph, MINI-6q94-5qm6-2x89, MINI-6r34-xjh9-64m2, MINI-6vm6-xj4f-9hj3, MINI-748x-m34m-rx6w, MINI-74m2-5g7m-jrvg, MINI-755m-jh6w-6x4f, MINI-755w-pfx9-3xfh, MINI-76p2-fqpp-3g6q, MINI-76xw-xwf9-4j2q, MINI-7868-9fqr-7hq7, MINI-798v-7qvm-3fvm, MINI-7cg5-x24f-pcqq, MINI-7ghr-ff77-9jqq, MINI-7h22-wcgc-jrr2, MINI-7m2w-23f5-2rpq, MINI-7v2q-c524-cxfq, MINI-7x45-v3gq-qqq5, MINI-83jr-p2c2-m467, MINI-8757-xj39-cvp2, MINI-8c6c-378p-rg6x, MINI-8fpx-x9gp-q88m, MINI-8g5r-c6w4-3rjg, MINI-8gq6-9ccf-v285, MINI-8gq6-wx77-j3gr, MINI-8hr9-mcr2-fw9m, MINI-8jrv-84pg-v34v, MINI-8mfv-266f-ff2h, MINI-8p59-wvxh-8v8h, MINI-8p9c-fr3j-wf5q, MINI-8v7r-m7jg-p95r, MINI-8xch-h82w-9q9q, MINI-936g-qr3m-rf4c, MINI-94pg-34hp-7wq3, MINI-96q2-9g84-626x, MINI-97rp-hjw3-fcvj, MINI-98w8-v9f3-f4rp, MINI-9fjf-xpp9-v626, MINI-9g28-9pfp-g3qq, MINI-9gqp-j5g4-35m4, MINI-9jfr-pv84-wr4j, MINI-9jx2-v23w-qm8q, MINI-9r7p-f9rg-jvhg, MINI-9w4j-jvpx-pmgm, MINI-9x9m-8f43-wcm4, MINI-c9f9-5vf7-x4fh, MINI-cc9r-cvxc-5w3v, MINI-cj5j-pppw-8cxq, MINI-cj5q-hfh9-vvp5, MINI-cj94-8635-4x58, MINI-cm5f-cr85-mc4x, MINI-cp3x-f8fq-h8cr, MINI-cqf3-jgx3-jf52, MINI-f5g5-ppx5-8mg4, MINI-f62r-r4r4-xpqv, MINI-f6w7-5fj7-4x45, MINI-ff7q-rg5c-42ph, MINI-fj2h-8cmc-8fvj, MINI-fjvw-vqcx-mw25, MINI-fm3h-8q54-fx46, MINI-fvx2-m6wp-fjw7, MINI-fw39-rjcj-56mg, MINI-fwc9-hxfh-v8h4, MINI-fxcq-wvxf-m6vq, MINI-g2cg-jxgf-9j2q, MINI-g578-x2q8-8xxq, MINI-g6pg-3mj7-ghmc, MINI-g7gj-2799-fv5x, MINI-g7x6-rcr4-29rf, MINI-g9m7-x22p-m8h4, MINI-g9r5-qcr2-4977, MINI-gfpw-57xh-9r9h, MINI-ggc7-hc99-q5m2, MINI-ggq8-mm5m-h3x8, MINI-gm48-hr4x-fgc2, MINI-gmj8-gqpm-346g, MINI-grch-2v5c-554m, MINI-gvw5-cggp-556p, MINI-gw7q-mrgx-p5w4, MINI-gwpg-593j-287m, MINI-h3j2-59g3-jc23, MINI-h4jj-j33v-jvvp, MINI-h566-mfvj-wcc5, MINI-h5gq-v259-c3q8, MINI-hc8w-p645-pv9f, MINI-hhpg-p4rh-74mw, MINI-hhxr-wxwf-wr5m, MINI-hmg8-4gjh-6h6w, MINI-hrhr-2j79-hhx2, MINI-hv4m-jrcp-mp3c, MINI-hw4r-6g7f-ccpj, MINI-hxjv-5v38-m2c2, MINI-j3q7-w9rr-j4cm, MINI-j4c3-hpcf-wpwx, MINI-j76g-j6x2-v7rf, MINI-j7fm-5pgq-wg9v, MINI-j847-85m2-wcg3, MINI-j8jh-344w-xxqw, MINI-j9m5-jx4f-cvqg, MINI-jg2p-2cg7-57vp, MINI-jgh6-c5gx-wgc4, MINI-jh49-f4qp-fq3p, MINI-jj5v-mx52-6q44, MINI-jmpj-8898-hj9c, MINI-jq5q-cjf3-pmpg, MINI-jvrr-8g3p-jgj4, MINI-m5gw-p5c8-6qj9, MINI-m85g-5x6x-3hp6, MINI-m9gr-gw5f-fhgw, MINI-mc2x-3445-vr45, MINI-mc3m-3hpc-c2jm, MINI-mc4h-chq2-jjgv, MINI-mc7v-p52g-pm6x, MINI-mf3c-35j4-7xw4, MINI-mg65-v73p-53jj, MINI-mp68-fh2p-3fhp, MINI-mw8f-f878-5mff, MINI-p3cw-rrfp-rrv6, MINI-p79j-32px-qqhr, MINI-pc69-54fp-rw55, MINI-pfm3-r545-66wc, MINI-pfp7-5c76-xf5f, MINI-phhp-rpf4-m8w4, MINI-pjp5-46hf-7wpg, MINI-ppff-wm83-8g24, MINI-pq95-crqx-m6w8, MINI-q279-hm36-9xph, MINI-q2w3-56gx-4xw6, MINI-q3h6-5vq6-r595, MINI-q3w5-85cv-gh77, MINI-q479-fc9c-8pp8, MINI-q6hh-qm9h-g8j6, MINI-q9hm-hh44-jjjr, MINI-qcvj-rh28-3j5p, MINI-qjhg-9pg8-p6rx, MINI-qpgg-3gw3-37jw, MINI-qpvp-mvmm-f93p, MINI-qq7q-qp44-mqh2, MINI-qr9g-6cxh-wwmq, MINI-qv6m-m66h-48mp, MINI-qx35-c22x-3gg9, MINI-r5cr-gp6j-h26w, MINI-r5vw-rrcc-wrmp, MINI-r5wx-m32x-rqxr, MINI-r7gg-h8pc-m7p5, MINI-rg5q-jmr3-243x, MINI-rhc4-382v-mphq, MINI-rjw3-2p8q-9r2p, MINI-rm53-77jr-pf3m, MINI-rp3v-q2hv-7rq8, MINI-rq2g-q38f-wj2g, MINI-rq2w-jwrg-fcr6, MINI-rqqh-662w-2frj, MINI-rrx3-gh55-rjc6, MINI-rwpq-g348-28ch, MINI-v28f-pwqh-69r5, MINI-vgrx-44h6-8hrq, MINI-vh9r-f3rp-77hv, MINI-vmcc-qpqp-cc26, MINI-vq65-h352-w8cv, MINI-vqh3-p985-jx96, MINI-vrj3-6px3-wq64, MINI-w2fq-9g5f-8mf9, MINI-w728-3xm3-334c, MINI-w7fx-w3pr-25h7, MINI-w9pf-3rfc-4r64, MINI-w9r7-3f98-rj3p, MINI-wcjx-4qqr-68xj, MINI-wcqh-j8ff-4433, MINI-whc6-53w4-mqjv, MINI-whjx-w5c9-pp42, MINI-wjgr-xf2v-56q7, MINI-wjxj-m26h-xf27, MINI-wp74-mwqr-6q6p, MINI-ww78-v82p-6fv3, MINI-x2p6-wqph-rqvx, MINI-x2x5-9qv7-952h, MINI-x5m9-62v9-x67g, MINI-x677-vhm5-c2fw, MINI-x685-pc4w-487x, MINI-x7qf-r9g3-2chg, MINI-x85j-33gr-c3qw, MINI-x8vm-jmpc-gc8r, MINI-xgfp-32mj-m986, MINI-xh8p-hfg5-8f87, MINI-xj92-39m2-x58g, MINI-xpr2-3fpv-jhgp, MINI-xq66-5c4q-q32g, MINI-xq7c-84qv-67qq, MINI-xr66-f33h-7jg8, MINI-xvw7-435r-cx6j

## What is CVE-2020-8911?

CVE-2020-8911 is a medium-severity vulnerability in Google LLC AWS S3 Crypto SDK for GoLang, published on 11 Aug 2020. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

A padding oracle vulnerability exists in the AWS S3 Crypto SDK for GoLang versions prior to V2. The SDK allows users to encrypt files with AES-CBC without computing a Message Authentication Code (MAC), which then allows an attacker who has write access to the target's S3 bucket and can observe whether or not an endpoint with access to the key can decrypt a file, they can reconstruct the plaintext with (on average) 128*length (plaintext) queries to the endpoint, by exploiting CBC's ability to manipulate the bytes of the next block and PKCS5 padding errors. It is recommended to update your SDK to V2 or later, and re-encrypt your files.

Weakness: CWE-327 (Use of a Broken or Risky Cryptographic Algorithm)

## Which versions are affected by CVE-2020-8911?

3 open source packages ship an affected version, including github.com/aws/aws-sdk-go. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/aws/aws-sdk-go` | Go | All versions | None |
| `github.com/aws/aws-sdk-go` | Go | All versions | 1.34.0 |
| `github.com/aws/aws-sdk-go` | Go | All versions | 1.34.0 |

Products: Amazon Aws S3 Crypto Sdk.

## How do I fix CVE-2020-8911?

Upgrade github.com/aws/aws-sdk-go to 1.34.0 or later.

## Is CVE-2020-8911 being exploited?

There is no known exploitation of CVE-2020-8911 in the wild and no public exploit code.

## Other vulnerabilities in Google LLC AWS S3 Crypto SDK for GoLang

- [CVE-2020-8912](https://insights.sbomify.com/CVE-2020-8912/): In-band key negotiation issue in AWS S3 Crypto SDK for GoLang (low 2.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2020-8911 and fix it if it is affected.

What it is: CVE-2020-8911 is a medium-severity vulnerability in Google LLC AWS S3 Crypto SDK for GoLang, published on 11 Aug 2020. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2020-8911 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/aws/aws-sdk-go (Go): affected all versions; no fix listed
- github.com/aws/aws-sdk-go (Go): affected all versions; fixed in 1.34.0
- github.com/aws/aws-sdk-go (Go): affected all versions; fixed in 1.34.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2020-8911/ (Markdown: https://insights.sbomify.com/CVE-2020-8911/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2020-8911
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2020-8911
- OSV: https://osv.dev/vulnerability/CVE-2020-8911

---
From sbomify Insights: https://insights.sbomify.com/CVE-2020-8911/
Summaries are generated and may contain mistakes; the official description above is the record.
