{"id":"CVE-2025-62375","aliases":["CVE-2025-62375","GHSA-72c7-4g63-hpw5","GO-2025-4028"],"related":["CGA-j2vv-jpg8-7695"],"kind":"vulnerability","state":"published","title":"go-witness Improper Verification of AWS EC2 Identity Documents","summary":"go-witness and witness are Go modules for generating attestations. In go-witness versions 0.8.6 and earlier and witness versions 0.9.2 and earlier the AWS attestor improperly verifies AWS EC2 instance identity documents. Verification can incorrectly succeed when a signature is not present or is empty, and when RSA signature verification fails. The attestor also embeds a single legacy global AWS public certificate and does not account for newer region specific certificates issued in 2024, making detection of forged documents difficult without additional trusted region data. An attacker able to supply or intercept instance identity document data (such as through Instance Metadata Service impersonation) can cause a forged identity document to be accepted, leading to incorrect trust decisions based on the attestation. This is fixed in go-witness 0.9.1 and witness 0.10.1. As a workaround, manually verify the included identity document, signature, and public key with standard tools (for example openssl) following AWS’s verification guidance, or disable use of the AWS attestor until upgraded.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"go-witness and witness are Go modules for generating attestations. In go-witness versions 0.8.6 and earlier and witness versions 0.9.2 and earlier the AWS attestor improperly verifies AWS EC2 instance identity documents. Verification can incorrectly succeed when a signature is not present or is empty, and when RSA signature verification fails. The attestor also embeds a single legacy global AWS public certificate and does not account for newer region specific certificates issued in 2024, making detection of forged documents difficult without additional trusted region data. An attacker able to supply or intercept instance identity document data (such as through Instance Metadata Service impersonation) can cause a forged identity document to be accepted, leading to incorrect trust decisions based on the attestation. This is fixed in go-witness 0.9.1 and witness 0.10.1. As a workaround, manually verify the included identity document, signature, and public key with standard tools (for example openssl) following AWS’s verification guidance, or disable use of the AWS attestor until upgraded.","source":"cvelist"},{"lang":"en","text":"### Impact\nThis vulnerability only affects users of the AWS attestor.\n\nUsers of the AWS attestor could have unknowingly received a forged identity document. While this may seem unlikely, AWS recently issued a security bulletin about IMDS (Instance Metadata Service) impersonation.[^1]\n\nThere are multiple locations where the verification of the identity document will mistakenly report a successful verification.\n\n- If a signature is not present or is empty\nhttps://github.com/in-toto/go-witness/blob/0c8bb30c143951d88b1d4b32f260c5f67d30137b/attestation/aws-iid/aws-iid.go#L161-L163\n\n- If the RSA verification of the document fails for any reason\nhttps://github.com/in-toto/go-witness/blob/0c8bb30c143951d88b1d4b32f260c5f67d30137b/attestation/aws-iid/aws-iid.go#L192-L196\n\n### Workarounds\nThe contents of the AWS attestation contain the identity document, signature, and public key that was used to verify the document. These attestations and their could be identity documents could be manually verified with the `openssl` command line as documented in the below reference from AWS.[^2]\n\nHowever, the certificate containing the public key was hard-coded into the attestor. \nhttps://github.com/in-toto/go-witness/blob/0c8bb30c143951d88b1d4b32f260c5f67d30137b/attestation/aws-iid/aws-iid.go#L46-L66\n\nSince the original authoring of the attestor, AWS has moved to region specific public certificates. The currently valid certificates were issued around April of 2024, making the identification of attestations with forged content difficult without additional trusted data proving the AWS region in which the attestation was created.\n\n### Patches\nThis vulnerability is addressed in `go-witness` 0.9.1 and `witness` 0.10.1.\n\n### Resources\n[^1]: [AWS Security Bulletin on IMDS Impersonation](https://aws.amazon.com/security/security-bulletins/rss/aws-2025-021/)\n[^2]: [Verification of instance identity documents](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/verify-iid.html#verify-signature)","format":"markdown","source":"ghsa"},{"lang":"en","text":"go-witness is Vulnerable to Improper Verification of AWS EC2 Identity Documents in github.com/in-toto/go-witness","format":"markdown","source":"go"},{"lang":"es","text":"go-witness y witness son módulos Go para generar atestaciones. En las versiones 0.8.6 y anteriores de go-witness y las versiones 0.9.2 y anteriores de witness, el atestador de AWS verifica incorrectamente los documentos de identidad de instancia de AWS EC2. La verificación puede tener éxito incorrectamente cuando una firma no está presente o está vacía, y cuando falla la verificación de la firma RSA. El atestador también incrusta un único certificado público global heredado de AWS y no tiene en cuenta los certificados más recientes específicos de región emitidos en 2024, lo que dificulta la detección de documentos falsificados sin datos de región confiables adicionales. Un atacante capaz de suministrar o interceptar datos de documentos de identidad de instancia (como a través de la suplantación del Servicio de Metadatos de Instancia) puede hacer que se acepte un documento de identidad falsificado, lo que lleva a decisiones de confianza incorrectas basadas en la atestación. Esto se ha corregido en go-witness 0.9.1 y witness 0.10.1. Como solución alternativa, verifique manualmente el documento de identidad, la firma y la clave pública incluidos con herramientas estándar (por ejemplo, OpenSSL) siguiendo la guía de verificación de AWS, o deshabilite el uso del atestador de AWS hasta que se actualice.","source":"nvd"}],"published":"2025-10-15T19:23:24.916Z","modified":"2026-10-08T11:10:00.250Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-295"],"affected":[{"ranges":[{"version":"< 0.9.1","status":"affected"}],"vendor":"in-toto","product":"go-witness","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.9.1"}],"ecosystem":"Go","package":"github.com/in-toto/go-witness","purl":"pkg:golang/github.com/in-toto/go-witness","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.9.1"}],"ecosystem":"Go","package":"github.com/in-toto/go-witness","purl":"pkg:golang/github.com/in-toto/go-witness","source":"go"}],"references":[{"url":"https://github.com/in-toto/go-witness/security/advisories/GHSA-72c7-4g63-hpw5","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/in-toto/go-witness/commit/04ff20b600e28ce8fd1aa287534dd383a1cfefb9","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62375","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/in-toto/go-witness","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-10-15T19:44:18.639Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-62375","url":"https://www.cve.org/CVERecord?id=CVE-2025-62375","licence":"CVE Terms of Use","modified":"2025-10-15T19:44:29.097Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-72c7-4g63-hpw5","url":"https://github.com/advisories/GHSA-72c7-4g63-hpw5","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:29.412Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-4028","url":"https://pkg.go.dev/vuln/GO-2025-4028","licence":"CC-BY-4.0","modified":"2026-02-04T03:05:11.731Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-62375","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62375","licence":"Public domain","modified":"2026-10-08T11:10:00.250Z"}],"updatedAt":"2026-11-25T22:59:06.470Z","epss":{"score":0.00214,"percentile":0.12459,"date":"2026-12-02T12:00:21.000Z"}}