<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
<!-- generated by https://github.com/cabo/kramdown-rfc version 1.7.38 (Ruby 2.6.10) -->
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" docName="draft-ietf-lamps-rfc6211-update-03" category="std" consensus="true" submissionType="IETF" updates="6211" tocInclude="true" sortRefs="true" symRefs="true" version="3">
  <!-- xml2rfc v2v3 conversion 3.34.1 -->
  <front>
    <title abbrev="Update to RFC 6211">Update to the Cryptographic Message Syntax (CMS) Algorithm Identifier Protection Attribute</title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-lamps-rfc6211-update-03"/>
    <author initials="R." surname="Housley" fullname="Russ Housley">
      <organization abbrev="Vigil Security">Vigil Security, LLC</organization>
      <address>
        <postal>
          <city>Herndon, VA</city>
          <country>US</country>
        </postal>
        <email>housley@vigilsec.com</email>
      </address>
    </author>
    <author initials="S." surname="Turner" fullname="Sean Turner">
      <organization abbrev="sn3rd">sn3rd llc</organization>
      <address>
        <postal>
          <city>Washington, DC</city>
          <country>US</country>
        </postal>
        <email>sean@sn3rd.com</email>
      </address>
    </author>
    <date year="2026" month="September" day="16"/>
    <workgroup>LAMPS</workgroup>
    <keyword>CMS</keyword>
    <keyword>attribute</keyword>
    <keyword>algorithm identifier</keyword>
    <abstract>
      <?line 54?>

<t>This document updates RFC 6211. It corrects errors in the definition
of the id-aa-CMSAlgorithmProtect ASN.1 object identifier. The IANA
registry entry has always been correct.</t>
    </abstract>
  </front>
  <middle>
    <?line 60?>

<section anchor="introduction">
      <name>Introduction</name>
      <t>This document corrects errors in <xref target="RFC6211"/>, especially an error in the
definition of the id-aa-CMSAlgorithmProtection ASN.1 object identifier.
The IANA registry entry for this ASN.1 object identifier does not need
to be updated; it has always been correct.</t>
      <t>The authors are aware of two implementations of RFC 6211, but they did not
interoperate because one used the ASN.1 object identifier from RFC 6211 and
the other used the ASN.1 object identifier from the IANA registry.</t>
      <t>The ASN.1 object identifier error was reported in <xref target="Err9144"/> and <xref target="Err9145"/>.</t>
      <t>In addition, the body of the <xref target="RFC6211"/> says that a set of attributes will
"include only one instance of the algorithm protection attribute" and that
there "MUST NOT be zero or multiple instances of AttributeValue present" in
the attribute instance. The second requirement can be included as guidance
in the ASN.1 definition, but neither requirement can be automatically enforced.</t>
      <t>This update to RFC 6211 will hopefully resolve future interoperability troubles.</t>
    </section>
    <section anchor="update-to-section-2-of-rfc-6211">
      <name>Update to Section 2 of RFC 6211</name>
      <t>OLD:</t>
      <artwork><![CDATA[
       aa-cmsAlgorithmProtection ATTRIBUTE ::= {
           TYPE CMSAlgorithmProtection
           IDENTIFIED BY { id-aa-CMSAlgorithmProtection }
       }

   The following object identifier identifies the algorithm protection
   attribute:

       id-aa-CMSAlgorithmProtection OBJECT IDENTIFIER ::= { iso(1)
            member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) 52 }
]]></artwork>
      <t>NEW:</t>
      <artwork><![CDATA[
       aa-cmsAlgorithmProtection ATTRIBUTE ::= {
           TYPE CMSAlgorithmProtection
           COUNTS MAX 1
           IDENTIFIED BY id-aa-cmsAlgorithmProtect
       }

   The following object identifier identifies the algorithm protection
   attribute:

       id-aa-cmsAlgorithmProtect OBJECT IDENTIFIER ::= { iso(1)
            member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
            smime(16) aa(2) 52 }
]]></artwork>
    </section>
    <section anchor="update-to-appendix-a-of-rfc-6211">
      <name>Update to Appendix A of RFC 6211</name>
      <t>OLD:</t>
      <artwork><![CDATA[
     aa-cmsAlgorithmProtection ATTRIBUTE ::= {
        TYPE CMSAlgorithmProtection
        IDENTIFIED BY { id-aa-cmsAlgorithmProtect }
     }

     id-aa-cmsAlgorithmProtect OBJECT IDENTIFIER ::= {
        iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
        pkcs9(9) 52 }
]]></artwork>
      <t>NEW:</t>
      <artwork><![CDATA[
     aa-cmsAlgorithmProtection ATTRIBUTE ::= {
           TYPE CMSAlgorithmProtection
           COUNTS MAX 1
           IDENTIFIED BY id-aa-cmsAlgorithmProtect
     }

     id-aa-cmsAlgorithmProtect OBJECT IDENTIFIER ::= {
        iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
        pkcs9(9) smime(16) aa(2) 52 }
]]></artwork>
    </section>
    <section anchor="iana-considerations">
      <name>IANA Considerations</name>
      <t>No IANA registry updates are needed. The IANA registry is correct.</t>
    </section>
    <section anchor="security-considerations">
      <name>Security Considerations</name>
      <t>The CMS attribute specified in <xref target="RFC6211"/> is designed to address the
security issue of algorithm substitutions. That is, the originator uses
one algorithm, an attacker modifies the message, and then the validator
uses a different algorithm. The specified protection is not successful
unless all implementers use the same ASN.1 object identifier for the
attribute.</t>
    </section>
  </middle>
  <back>
    <references anchor="sec-combined-references">
      <name>References</name>
      <references anchor="sec-normative-references">
        <name>Normative References</name>
        <reference anchor="RFC6211">
          <front>
            <title>Cryptographic Message Syntax (CMS) Algorithm Identifier Protection Attribute</title>
            <author fullname="J. Schaad" initials="J." surname="Schaad"/>
            <date month="April" year="2011"/>
            <abstract>
              <t>The Cryptographic Message Syntax (CMS), unlike X.509/PKIX certificates, is vulnerable to algorithm substitution attacks. In an algorithm substitution attack, the attacker changes either the algorithm being used or the parameters of the algorithm in order to change the result of a signature verification process. In X.509 certificates, the signature algorithm is protected because it is duplicated in the TBSCertificate.signature field with the proviso that the validator is to compare both fields as part of the signature validation process. This document defines a new attribute that contains a copy of the relevant algorithm identifiers so that they are protected by the signature or authentication process. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6211"/>
          <seriesInfo name="DOI" value="10.17487/RFC6211"/>
        </reference>
      </references>
      <references anchor="sec-informative-references">
        <name>Informative References</name>
        <reference anchor="Err9144" target="https://errata.rfc-editor.org/eid9144/">
          <front>
            <title>RFC 6211 Errata Report ID 9144</title>
            <author>
              <organization>RFC Editor</organization>
            </author>
            <date year="2026" month="August" day="19"/>
          </front>
        </reference>
        <reference anchor="Err9145" target="https://errata.rfc-editor.org/eid9145/">
          <front>
            <title>RFC 6211 Errata Report ID 9145</title>
            <author>
              <organization>RFC Editor</organization>
            </author>
            <date year="2026" month="August" day="19"/>
          </front>
        </reference>
      </references>
    </references>
    <?line 159?>

<section numbered="false" anchor="acknowledgments">
      <name>Acknowledgments</name>
      <t>Thanks to Paul Timmel for being the first person to spot the error in <xref target="RFC6211"/>.</t>
      <t>Thanks to Corey Bonnell, Mike StJohns, Daniel Van Geest, Carl Wallace
for their careful review and constructive comments.  The document
is much better because of their review.</t>
    </section>
  </back>
  <!-- ##markdown-source:
H4sIAHGnqmoAA81YbW/bNhD+zl9x8L4kgOXGaVMsHgrMddzNQ5MWsdNuH2nx
bHORSI2k4nmB+9t3R8mykzppg2FFCzSxJfL43D338jBJkoigQ4Y9aF0VSgaE
YCEsEAZuVQQ7d7JY6BTO0Xs5RxivTJB/w8HgfHwI/WxunQ6LHEYKTdAzjQ7e
OxswDdoa6Ifg9LQM2BJyOnV4c+eQyzcDeHnc7baELhy9Ca704fjo6PTouCVS
WkTGVz3wQQllUyNzwqicnIVEY5glmcwLn7hZyjaSMppNjp6L6pPvRdvCl9Nc
e09owqogA6Ph5I3gBT04Pjp+mRydJt2XIrXGo/El7SIUKAjoc/EDSIeyB2NM
S/JyJZbzHrztn78fi2tcLa1TPQEJUCT4l9z4Gr80gdFNYISQZVhYR5sgof8A
lUuXpffwqy19hqv4WBuCcdm588w6OvuDnuusgdOGt28H8eUmtnffx1cpfejB
r+iMsqYNH/rVU1uawLG9GsfvmEud9WBRHfjzDdvxmHZSm98DO0ZpYFI6Q/40
WMed3UcRqjfPnYIsS+8AjE93cH2UfqHNPDC0s8Fj0Dyd+3PcHkEJY10ug75B
jiYlEnPdE0Kb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