VYPR
High severity7.5NVD Advisory· Published Sep 19, 2017· Updated May 13, 2026

CVE-2017-14033

CVE-2017-14033

Description

The decode method in the OpenSSL::ASN1 module in Ruby before 2.2.8, 2.3.x before 2.3.5, and 2.4.x through 2.4.1 allows attackers to cause a denial of service (interpreter crash) via a crafted string.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
opensslRubyGems
< 2.0.02.0.0

Patches

1
36bf7f403ebb

asn1: fix possible segfault in OpenSSL::ASN1::Constructive#each

https://github.com/ruby/opensslKazuki YamaguchiNov 15, 2016via ghsa
1 file changed · +6 2
  • ext/openssl/ossl_asn1.c+6 2 modified
    @@ -182,6 +182,7 @@ VALUE cASN1Sequence, cASN1Set;                /* CONSTRUCTIVE      */
     static VALUE sym_IMPLICIT, sym_EXPLICIT;
     static VALUE sym_UNIVERSAL, sym_APPLICATION, sym_CONTEXT_SPECIFIC, sym_PRIVATE;
     static ID sivVALUE, sivTAG, sivTAG_CLASS, sivTAGGING, sivINFINITE_LENGTH, sivUNUSED_BITS;
    +static ID id_each;
     
     /*
      * Ruby to ASN1 converters
    @@ -696,7 +697,7 @@ static VALUE
     join_der(VALUE enumerable)
     {
         VALUE str = rb_str_new(0, 0);
    -    rb_block_call(enumerable, rb_intern("each"), 0, 0, join_der_i, str);
    +    rb_block_call(enumerable, id_each, 0, 0, join_der_i, str);
         return str;
     }
     
    @@ -1284,7 +1285,8 @@ ossl_asn1cons_to_der(VALUE self)
     static VALUE
     ossl_asn1cons_each(VALUE self)
     {
    -    rb_ary_each(ossl_asn1_get_value(self));
    +    rb_funcall(ossl_asn1_get_value(self), id_each, 0);
    +
         return self;
     }
     
    @@ -1925,4 +1927,6 @@ do{\
         rb_hash_aset(class_tag_map, cASN1UniversalString, INT2NUM(V_ASN1_UNIVERSALSTRING));
         rb_hash_aset(class_tag_map, cASN1BMPString, INT2NUM(V_ASN1_BMPSTRING));
         rb_global_variable(&class_tag_map);
    +
    +    id_each = rb_intern_const("each");
     }
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

22

News mentions

0

No linked articles in our index yet.