CVE-2023-50268

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-50268
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-50268.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-50268
Aliases
  • GHSA-7hmr-442f-qc8j
Downstream
Related
Published
2023-12-13T20:49:54.982Z
Modified
2025-11-29T15:06:50.803267Z
Severity
  • 6.2 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
jq has stack-based buffer overflow in decNaNs
Details

jq is a command-line JSON processor. Version 1.7 is vulnerable to stack-based buffer overflow in builds using decNumber. Version 1.7.1 contains a patch for this issue.

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

Affected packages

Git / github.com/jqlang/jq

Affected ranges

Type
GIT
Repo
https://github.com/jqlang/jq
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*

1.6rc2

jq-1.*

jq-1.0
jq-1.1
jq-1.2
jq-1.3
jq-1.4
jq-1.5rc1
jq-1.5rc2
jq-1.6
jq-1.6rc1
jq-1.7
jq-1.7rc1
jq-1.7rc2

Database specific

vanir_signatures

[
    {
        "target": {
            "file": "src/jv.c",
            "function": "jvp_number_cmp"
        },
        "digest": {
            "function_hash": "22550875515713324128520625183215086364",
            "length": 634.0
        },
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://github.com/jqlang/jq/commit/c9a51565214eece8f1053089739aea73145bfd6b",
        "signature_type": "Function",
        "id": "CVE-2023-50268-a2d2ea46"
    },
    {
        "target": {
            "file": "src/jv.c"
        },
        "digest": {
            "line_hashes": [
                "1371753125883065672057533830705252943",
                "216860606710970311303215741001243012159",
                "165464292948581339852936572259524919584",
                "255758938615600683693124477605172127745",
                "245329855745470253622444550787235282293",
                "154994877992986023031708220241328935675",
                "93166843768021528035323026897990025527",
                "132979471927433437070415656838934883298",
                "277305042641553834268379700979743214986",
                "5391192241338951654753776646990161703",
                "165392846152929313379498705231826085965",
                "166852718090386609754714604848746705693"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://github.com/jqlang/jq/commit/c9a51565214eece8f1053089739aea73145bfd6b",
        "signature_type": "Line",
        "id": "CVE-2023-50268-d89c5938"
    }
]