{"answers":{"affected":"5 open source packages ship an affected version, including github.com/aws/aws-sdk-go. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-2582 in the wild and no public exploit code.","fix":"Upgrade github.com/aws/aws-sdk-go to 1.34.0 or later.","what":"CVE-2022-2582 is a medium-severity vulnerability in github.com/aws/aws-sdk-go/service/s3/s3crypto, published on 27 Dec 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-2582 and fix it if it is affected.\n\nWhat it is: CVE-2022-2582 is a medium-severity vulnerability in github.com/aws/aws-sdk-go/service/s3/s3crypto, published on 27 Dec 2022. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-2582 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/aws/aws-sdk-go (Go): affected all versions; fixed in 1.34.0\n- github.com/aws/aws-sdk-go (Go): affected all versions; fixed in 1.34.0\n- github.com/aws/aws-sdk-go (Go): affected all versions; fixed in 1.34.0\n- github.com/aws/aws-sdk-go (Go): affected all versions; fixed in 1.34.0\n- github.com/aws/aws-sdk-go (Go): affected all versions; fixed in 1.34.0\n\nTask:\n1. 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.\n2. 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.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-2582/ (Markdown: https://insights.sbomify.com/CVE-2022-2582/index.md)","id":"CVE-2022-2582","markdown":"https://insights.sbomify.com/CVE-2022-2582/index.md","name":"CVE-2022-2582","record":{"aliases":["DEBIAN-CVE-2022-2582","GHSA-6jvc-q2x7-pchv","GHSA-76wf-9vgp-pj7w","GO-2022-0391","UBUNTU-CVE-2022-2582"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"AWS S3 Crypto SDK","requires_auth":"low_privilege","summary":"The AWS S3 Crypto SDK exposes an unencrypted plaintext hash, allowing attackers to brute force the original data if the metadata is accessible.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Go","cpe":[{"product":"aws_software_development_kit","vendor":"amazon"}],"cvss":{"score":4.3,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-326","name":"Inadequate Encryption Strength"}],"description":"The AWS S3 Crypto SDK sends an unencrypted hash of the plaintext alongside the ciphertext as a metadata field. This hash can be used to brute force the plaintext, if the hash is readable to the attacker. AWS now blocks this metadata field, but older SDK versions still send it.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Exposure of unencrypted plaintext hash in github.com/aws/aws-sdk-go","id":"CVE-2022-2582","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2022"},"n_packages":5,"n_references":2,"next":{"headline":"Race condition in github.com/ntbosscher/gobase","id":"CVE-2022-2583"},"packages":[{"ecosystem":"Go","fixed":["1.34.0"],"introduced":["0"],"last_affected":[],"package":"github.com/aws/aws-sdk-go","purl":null,"source":"GHSA-6jvc-q2x7-pchv"},{"ecosystem":"Go","fixed":["1.34.0"],"introduced":["0"],"last_affected":[],"package":"github.com/aws/aws-sdk-go","purl":"pkg:golang/github.com/aws/aws-sdk-go","source":"GHSA-6jvc-q2x7-pchv"},{"ecosystem":"Go","fixed":["1.34.0"],"introduced":["0"],"last_affected":[],"package":"github.com/aws/aws-sdk-go","purl":null,"source":"GHSA-76wf-9vgp-pj7w"},{"ecosystem":"Go","fixed":["1.34.0"],"introduced":["0"],"last_affected":[],"package":"github.com/aws/aws-sdk-go","purl":"pkg:golang/github.com/aws/aws-sdk-go","source":"GHSA-76wf-9vgp-pj7w"},{"ecosystem":"Go","fixed":["1.34.0"],"introduced":["0"],"last_affected":[],"package":"github.com/aws/aws-sdk-go","purl":"pkg:golang/github.com/aws/aws-sdk-go","source":"GO-2022-0391"}],"prev":{"headline":"Out-of-bounds Read in vim/vim","id":"CVE-2022-2581"},"products":["github.com/aws/aws-sdk-go/service/s3/s3crypto"],"published":"2022-12-27","related":[{"cvss_score":7.2,"headline":"Information disclosure in n/a","id":"CVE-2018-19981","kev_date_added":null,"published":"2019-04-04"},{"cvss_score":6,"headline":"Out-of-bounds write in the Base64 decoder in Amazon aws-sdk-cpp","id":"CVE-2026-19642","kev_date_added":null,"published":"2026-08-12"},{"cvss_score":6,"headline":"Out-of-bounds read in the Base64 decoder in Amazon aws-sdk-cpp on signed-char platforms","id":"CVE-2026-19643","kev_date_added":null,"published":"2026-08-12"},{"cvss_score":6,"headline":"Potential URI resolution path traversal in the AWS SDK for PHP","id":"CVE-2023-51651","kev_date_added":null,"published":"2023-12-22"},{"cvss_score":5.5,"headline":"AWS SDK XML Parser XpathUtils.java XpathUtils server-side request forgery","id":"CVE-2022-4725","kev_date_added":null,"published":"2022-12-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-11","vendors":["github.com/aws/aws-sdk-go"]},"summary":"The AWS S3 Crypto SDK exposes an unencrypted plaintext hash, allowing attackers to brute force the original data if the metadata is accessible.","url":"https://insights.sbomify.com/CVE-2022-2582/"}