Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-16149

In sig_verify() in x509.c in axTLS version 2.1.3 and before, the PKCS#1 v1.5 signature verification blindly trusts the declared lengths in the ASN.1 structure. Consequently, when small public exponents are being used, a remote attacker can generate purposefully crafted signatures (and put them on X.509 certificates) to induce illegal memory access and crash the verifier.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-16149
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:25 UTC · Revision 1

Source evidence

CVE-2018-16149

core-osv · Original source

Published 7 Nov 2018, 20:29 UTC

In sig_verify() in x509.c in axTLS version 2.1.3 and before, the PKCS#1 v1.5 signature verification blindly trusts the declared lengths in the ASN.1 structure. Consequently, when small public exponents are being used, a remote attacker can generate purposefully crafted signatures (and put them on X.509 certificates) to induce illegal memory access and crash the verifier.

osv:CVE-2018-16149
Complete source record
{
  "id": "aefdc31592521bb0de344c350ae7eb4f44f88583fbea98e5efbbb5ce7a7a16e0",
  "url": "https://osv.dev/vulnerability/CVE-2018-16149",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-16149",
    "summary": "In sig_verify() in x509.c in axTLS version 2.1.3 and before, the PKCS#1 v1.5 signature verification blindly trusts the declared lengths in the ASN.1 structure. Consequently, when small public exponents are being used, a remote attacker can generate purposefully crafted signatures (and put them on X.509 certificates) to induce illegal memory access and crash the verifier.",
    "evidence": "osv:CVE-2018-16149",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-16149",
      "aliases": [
        "CVE-2018-16149"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/igrr/axtls-8266",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5efe2947ab45e81d84b5f707c51d1c64be52f36c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "5efe2947ab45e81d84b5f707c51d1c64be52f36c"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-16149.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-16149-3090bf7e",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "108661851987972133158347054716703460683",
                    "14896255174603763604770523751983435879",
                    "120240012124074572250753975559093603406",
                    "45010925886924942386907557492617314856",
                    "115305286616551607897244325241390183963",
                    "9084237671732349361622604103010111563",
                    "185845852160614897619048903410496139504",
                    "208322761451658317154631074413909015154",
                    "185082032209968563001193921342815963010",
                    "186270198572434066780252391661755022115",
                    "50486728262798664783477895502371598539",
                    "238538377523240267513329349303468711107",
                    "244601293052885541233433686491443506785",
                    "57107941115571653783496538010191647563",
                    "218390482235484409823204904791605352948",
                    "278618590998667647087943783369648520885",
                    "166932922021684597834217713555700614848",
                    "195146750242824880305351287025864433794",
                    "22185783351391265490991248551830443790",
                    "84577917608870377487401127617600840478",
                    "181807139630374287586913659774436982587",
                    "57536454303877057962146740463074587417",
                    "233082035197181483690985219850815497923",
                    "258752981139989151020579234742060642985",
                    "117578550962584056793915946910351421511",
                    "61491189147592498635277465718922381231",
                    "108836589434530459216980942412049144973",
                    "335081944872175553627843886622382730268",
                    "95625288284106286882967882031022885083",
                    "49585425216726811453278729953818840069",
                    "237978599236179955971782873432814558865",
                    "339536106570935589585141430302204605375",
                    "294128945153324378199602375625233392002",
                    "202780183330052102017085865184175332675",
                    "235316235711897240953832705127279614660",
                    "19322163383816135294590054626317666890",
                    "149134396912841586962585068550949712513",
                    "154871753701657350703814844030645535224",
                    "138740526242742065281847547013745442303",
                    "236008771591026412195639438620995675865",
                    "303492404983386076464265066061129154306",
                    "93317831494390685477701447882423156453",
                    "165379616122019241837551638587367351881",
                    "165877849408296707887289760177956569788",
                    "260572460417766524035127727657875885064",
                    "15599565959541491860649101577670499488",
                    "285410099532478080544838165762270161618"
                  ]
                },
                "source": "https://github.com/igrr/axtls-8266/commit/5efe2947ab45e81d84b5f707c51d1c64be52f36c",
                "target": {
                  "file": "ssl/x509.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-16149-94fc8e4b",
                "digest": {
                  "length": 389,
                  "function_hash": "74073868604478741200156603912144804076"
                },
                "source": "https://github.com/igrr/axtls-8266/commit/5efe2947ab45e81d84b5f707c51d1c64be52f36c",
                "target": {
                  "file": "ssl/x509.c",
                  "function": "get_signature"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-16149-c256e85e",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "253007544034811596310265824059848257290",
                    "268133784929346848139382881450918463779",
                    "65170034753240938602689110438809907804",
                    "4989148451732204170605134390826381115"
                  ]
                },
                "source": "https://github.com/igrr/axtls-8266/commit/5efe2947ab45e81d84b5f707c51d1c64be52f36c",
                "target": {
                  "file": "ssl/os_port.h"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-16149-d6e58869",
                "digest": {
                  "length": 702,
                  "function_hash": "232285230700911005501498625380349597162"
                },
                "source": "https://github.com/igrr/axtls-8266/commit/5efe2947ab45e81d84b5f707c51d1c64be52f36c",
                "target": {
                  "file": "ssl/x509.c",
                  "function": "sig_verify"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-16149-ec948ef3",
                "digest": {
                  "length": 2514,
                  "function_hash": "47102076113973104952396175716829351788"
                },
                "source": "https://github.com/igrr/axtls-8266/commit/5efe2947ab45e81d84b5f707c51d1c64be52f36c",
                "target": {
                  "file": "ssl/x509.c",
                  "function": "x509_verify"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:29:17Z"
          }
        }
      ],
      "modified": "2026-10-20T13:29:17.389037367Z",
      "provider": "osv",
      "references": [
        "https://github.com/igrr/axtls-8266/commit/5efe2947ab45e81d84b5f707c51d1c64be52f36c",
        "https://sourceforge.net/p/axtls/mailman/message/36459928/"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:axtls_project:axtls:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "axtls_project:axtls",
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "2.1.3"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "2.1.3"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-16149",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387735,
  "published_at": "2018-11-07T20:29:00.557+00:00"
}