CVE-2022-29242

Source
https://cve.org/CVERecord?id=CVE-2022-29242
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29242.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-29242
Aliases
  • GHSA-2rmw-8wpg-vgw5
Downstream
Published
2022-05-24T14:55:13Z
Modified
2026-07-22T02:24:41.296083Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Buffer Overflow on creating key transport blob in GOST Engine
Details

GOST engine is a reference implementation of the Russian GOST crypto algorithms for OpenSSL. TLS clients using GOST engine when ciphersuite TLS_GOSTR341112_256_WITH_KUZNYECHIK_CTR_OMAC is agreed and the server uses 512 bit GOST secret keys are vulnerable to buffer overflow. GOST engine version 3.0.1 contains a patch for this issue. Disabling ciphersuite TLS_GOSTR341112_256_WITH_KUZNYECHIK_CTR_OMAC is a possible workaround.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-120"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29242.json"
}
References

Affected packages

Git / github.com/gost-engine/engine

Affected ranges

Type
GIT
Repo
https://github.com/gost-engine/engine
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Fixed
Database specific
{
    "cpe": "cpe:2.3:a:gost_engine_project:gost_engine:*:*:*:*:*:*:*:*",
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "3.0.1"
        }
    ]
}

Affected versions

v3.*
v3.0.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29242.json"
vanir_signatures_modified
"2026-07-22T02:24:41Z"
vanir_signatures
[
    {
        "signature_version": "v1",
        "source": "https://github.com/gost-engine/engine/commit/c6655a0b620a3e31f085cc906f8073fe81b2fad3",
        "id": "CVE-2022-29242-518bdba1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "181079042129152464932669655050909846368",
                "158295315304811067947470668990101074335",
                "239758865765949342379508158066880226757",
                "7856286627472673225455720181777985340"
            ]
        },
        "target": {
            "file": "e_gost_err.c"
        },
        "deprecated": false,
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "source": "https://github.com/gost-engine/engine/commit/c6655a0b620a3e31f085cc906f8073fe81b2fad3",
        "id": "CVE-2022-29242-7c5971bf",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "65030514501109260630237999873123317328",
                "118759800526282905302103490401707480352",
                "25217270377180783317180417274478535203",
                "82835145014064360693273568063469535198",
                "190573629692466551360361712816298746329",
                "270785022693191878437097098274107173792",
                "59505043026629093783673545315870750222",
                "66807662697499471765169844625495725539",
                "259928869894521617717612055134712520778"
            ]
        },
        "target": {
            "file": "gost_ec_keyx.c"
        },
        "deprecated": false,
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "source": "https://github.com/gost-engine/engine/commit/c6655a0b620a3e31f085cc906f8073fe81b2fad3",
        "id": "CVE-2022-29242-8a1db8d3",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "225974880740951108040578185193683290431",
                "83795847996781818239151978839630099984",
                "92443563628866274598904886782383012572",
                "271866978301397155848059525930755811876"
            ]
        },
        "target": {
            "file": "e_gost_err.h"
        },
        "deprecated": false,
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "source": "https://github.com/gost-engine/engine/commit/c6655a0b620a3e31f085cc906f8073fe81b2fad3",
        "id": "CVE-2022-29242-fc24cf99",
        "digest": {
            "length": 2773.0,
            "function_hash": "88359506090462606094284207342429409843"
        },
        "target": {
            "function": "pkey_gost2018_encrypt",
            "file": "gost_ec_keyx.c"
        },
        "deprecated": false,
        "signature_type": "Function"
    }
]